from tortoise import BaseDBAsyncClient


async def upgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `xm_category` ADD `cate_en_name` VARCHAR(30) NOT NULL  COMMENT '英文名称';"""


async def downgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `xm_category` DROP COLUMN `cate_en_name`;"""
